How to correctly check if a string match regex in javascript

join shbcf.ru